<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MC823 - Laboratório de Redes: Trabalho 01: Referência do Arquivo mm.c</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Gerado por Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Busca');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">MC823 - Laboratório de Redes: Trabalho 01</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Página&#160;Principal</span></a></li>
      <li><a href="annotated.html"><span>Estruturas&#160;de&#160;Dados</span></a></li>
      <li class="current"><a href="files.html"><span>Arquivos</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Busca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Lista&#160;de&#160;Arquivos</span></a></li>
      <li><a href="globals.html"><span>Globais</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Funções</a>  </div>
  <div class="headertitle">
<div class="title">Referência do Arquivo mm.c</div>  </div>
</div>
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
</div><div class="textblock"><div class="dynheader">
Gráfico de dependência de inclusões para mm.c:</div>
<div class="dyncontent">
<div class="center"><img src="mm_8c__incl.png" border="0" usemap="#mm_8c" alt=""/></div>
<map name="mm_8c" id="mm_8c">
</map>
</div>
</div>
<p><a href="mm_8c_source.html">Vá para o código-fonte deste arquivo.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Funções</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mm_8c.html#a42ccfa6fc49cc4ce90cc44cd05052490">xmalloc</a> (size_t size)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mm_8c.html#a93a8ec6e8a6eef0f62b7e5b50d0bf9e4">xrealloc</a> (void *ptr, size_t size)</td></tr>
</table>
<hr/><h2>Funções</h2>
<a class="anchor" id="a42ccfa6fc49cc4ce90cc44cd05052490"></a><!-- doxytag: member="mm.c::xmalloc" ref="a42ccfa6fc49cc4ce90cc44cd05052490" args="(size_t size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* xmalloc </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Função auxiliar que aloca memória.</p>
<p>size - tamanho a ser alocado</p>
<p>inteiro representando sucesso ou fracasso </p>

<p>Definição na linha <a class="el" href="mm_8c_source.html#l00014">14</a> do arquivo <a class="el" href="mm_8c_source.html">mm.c</a>.</p>

<p><div class="dynheader">
Este é o diagrama das funções que utilizam esta função:</div>
<div class="dyncontent">
<div class="center"><img src="mm_8c_a42ccfa6fc49cc4ce90cc44cd05052490_icgraph.png" border="0" usemap="#mm_8c_a42ccfa6fc49cc4ce90cc44cd05052490_icgraph" alt=""/></div>
<map name="mm_8c_a42ccfa6fc49cc4ce90cc44cd05052490_icgraph" id="mm_8c_a42ccfa6fc49cc4ce90cc44cd05052490_icgraph">
<area shape="rect" id="node3" href="str_8h.html#a43e9efab3e78f169462b9f842c827fba" title="str_initialize" alt="" coords="127,160,223,189"/><area shape="rect" id="node5" href="resposta_8h.html#a6c04d45a3b24b43c86d50889bde25d67" title="infoDisciplina" alt="" coords="293,57,397,87"/><area shape="rect" id="node14" href="resposta_8h.html#aae0e9c217f1ede36bbf9821b36bba3f9" title="infoDisciplinas" alt="" coords="468,109,580,139"/><area shape="rect" id="node17" href="resposta_8h.html#adca402fde30bac4845d32a7dd4e6160a" title="listaDisciplinas" alt="" coords="467,163,581,192"/><area shape="rect" id="node20" href="beejClient_8c.html#a0ddf1224851353fc92bfbff6f499fa97" title="main" alt="" coords="319,212,372,241"/><area shape="rect" id="node22" href="resposta_8h.html#ae53e5d927eddd073efa7dd3777c222c2" title="programaDisciplina" alt="" coords="273,265,417,295"/><area shape="rect" id="node7" href="resposta_8h.html#a2a098bc71f2a19dd74318fd778676979" title="leComentario" alt="" coords="471,5,577,35"/><area shape="rect" id="node9" href="resposta_8h.html#a9bb7e31e6340d62b3afb839655847563" title="preparaResposta" alt="" coords="629,109,760,139"/><area shape="rect" id="node11" href="beejServer_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="809,109,863,139"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a93a8ec6e8a6eef0f62b7e5b50d0bf9e4"></a><!-- doxytag: member="mm.c::xrealloc" ref="a93a8ec6e8a6eef0f62b7e5b50d0bf9e4" args="(void *ptr, size_t size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* xrealloc </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Função auxiliar usada para realocar memória</p>
<p>ptr - ponteiro para a estrutura a ser realocada  size - tamanho a ser realocado</p>
<p>inteiro representando sucesso ou fracasso </p>

<p>Definição na linha <a class="el" href="mm_8c_source.html#l00034">34</a> do arquivo <a class="el" href="mm_8c_source.html">mm.c</a>.</p>

<p><div class="dynheader">
Este é o diagrama das funções que utilizam esta função:</div>
<div class="dyncontent">
<div class="center"><img src="mm_8c_a93a8ec6e8a6eef0f62b7e5b50d0bf9e4_icgraph.png" border="0" usemap="#mm_8c_a93a8ec6e8a6eef0f62b7e5b50d0bf9e4_icgraph" alt=""/></div>
<map name="mm_8c_a93a8ec6e8a6eef0f62b7e5b50d0bf9e4_icgraph" id="mm_8c_a93a8ec6e8a6eef0f62b7e5b50d0bf9e4_icgraph">
<area shape="rect" id="node3" href="str_8h.html#a0551d9da0243fc76764a50740d442547" title="str_concat_chararr" alt="" coords="127,187,268,216"/><area shape="rect" id="node5" href="resposta_8h.html#a6c04d45a3b24b43c86d50889bde25d67" title="infoDisciplina" alt="" coords="323,57,427,87"/><area shape="rect" id="node14" href="resposta_8h.html#aae0e9c217f1ede36bbf9821b36bba3f9" title="infoDisciplinas" alt="" coords="497,109,609,139"/><area shape="rect" id="node17" href="resposta_8h.html#adca402fde30bac4845d32a7dd4e6160a" title="listaDisciplinas" alt="" coords="496,163,611,192"/><area shape="rect" id="node20" href="beejClient_8c.html#a0ddf1224851353fc92bfbff6f499fa97" title="main" alt="" coords="348,212,401,241"/><area shape="rect" id="node22" href="resposta_8h.html#ae53e5d927eddd073efa7dd3777c222c2" title="programaDisciplina" alt="" coords="481,240,625,269"/><area shape="rect" id="node25" href="str_8h.html#afb165027543e6d9d230117702acdadd0" title="str_concat_str" alt="" coords="319,316,431,345"/><area shape="rect" id="node7" href="resposta_8h.html#a2a098bc71f2a19dd74318fd778676979" title="leComentario" alt="" coords="500,5,607,35"/><area shape="rect" id="node9" href="resposta_8h.html#a9bb7e31e6340d62b3afb839655847563" title="preparaResposta" alt="" coords="675,109,805,139"/><area shape="rect" id="node11" href="beejServer_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="855,109,908,139"/></map>
</div>
</p>

</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Todos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Estruturas de Dados</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Arquivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funções</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variáveis</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Definições de Tipos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Definições e Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Gerado em Quarta, 25 de Abril de 2012 23:42:04 para MC823 - Laboratório de Redes: Trabalho 01 por&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>
